package otherSAMS.model;
/**
 * 用户表
 * @author txx
 *
 */
public class User {
    private int id;//账号
    private String username;//用户名
    private String password;//密码
    private int type;//用户类型
    private int status;//用户状态

    public User() {
        super();
    }

    public User(int id, String username, String password, int type, int status) {
        super();
        this.id = id;
        this.username = username;
        this.password = password;
        this.type = type;
        this.status = status;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("user{");
        sb.append("id=").append(id);
        sb.append(",username=").append(username).append("/");
        sb.append(",password=").append(password).append("/");
        sb.append(",type=").append(type);
        sb.append(",status=").append(status);
        sb.append("}");
        return sb.toString();
    }



}


